package org.nfIt.service.impl;

import org.nfIt.entity.product.Brand;
import org.nfIt.mapper.BrandMapper;
import org.nfIt.service.BrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClossName:BrandServiceImpl
 * Pakage:org.nfIt.service.impl
 * Description
 *
 * @Author L
 * @Create 2024/9/22 19:05
 * @Version 2023.1.3
 */
@Service
public class BrandServiceImpl implements BrandService {

    @Autowired
    private BrandMapper brandMapper;
    /**
     * 查询所有品牌
     */
//    @Cacheable(value = "brandList", unless="#result.size() == 0")
    @Override
    public List<Brand> findBrandAll() {
        return brandMapper.findBrandAll();
    }
}
